package com.konsung.ksdc.bean.netbean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 售后回复bean
 * Created by Administrator on 2016/3/24 0024.
 */
public class ReplyNetBean implements Parcelable {
    private String replyDate; // 回复时间
    private String replyContent; // 回复内容

    @Override
    public String toString() {
        return "ReplyNetBean{" +
                "replyDate='" + replyDate + '\'' +
                ", replyContent='" + replyContent + '\'' +
                '}';
    }

    /**
     * 获取回复日期
     * @return 回复日期
     */
    public String getReplyDate() {
        return replyDate;
    }

    /**
     * 设置回复日期
     * @param replyDate 回复日期
     */
    public void setReplyDate(String replyDate) {
        this.replyDate = replyDate;
    }

    /**
     * 获取回复内容
     * @return 回复内容
     */
    public String getReplyContent() {
        return replyContent;
    }

    /**
     * 设置回复内容
     * @param replyContent 回复内容
     */
    public void setReplyContent(String replyContent) {
        this.replyContent = replyContent;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.replyDate);
        dest.writeString(this.replyContent);
    }

    /**
     * 序列化实体类对象
     * @param in Parcel对象
     */
    protected ReplyNetBean(Parcel in) {
        this.replyDate = in.readString();
        this.replyContent = in.readString();
    }

    public static final Parcelable.Creator<ReplyNetBean> CREATOR = new
            Parcelable.Creator<ReplyNetBean>() {
                @Override
                public ReplyNetBean createFromParcel(Parcel source) {
                    return new ReplyNetBean(source);
                }

                @Override
                public ReplyNetBean[] newArray(int size) {
                    return new ReplyNetBean[size];
                }
            };
}
